﻿using Gsiot.Server;

public class HelloWeb
{
    public static void Main()
    {
        var webServer = new HttpServer
        {
            RelayDomain = "<insert your relay domain here>",
            RelaySecretKey = "<insert your secret key here>",
            RequestRouting =
            {
                {
                    "GET /hello",
                    context =>
                      { context.SetResponse("Hello Web", "text/plain"); }
                }
            }
        };
        webServer.Run();
    }
}
